package training.dao;

import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import training.service.CustomerServiceImpl;
import training.vo.Sales;

import baytony.util.Profiler;
import baytony.util.StringUtil;
/**
 * <ol>
 * 	<li>營業員的相關資料皆須透過此data access object 取得</li>
 * 	<li>進行營業員資料的操作時，必須使用此DAO</li>
 * </ol>
 * <p>Created at 2013/3/18</p>
 * <p>@version 1.0.0</p>
 * @author fatsung
 */
@Repository("SalesDao")
public class SalesDao extends HibernateDao<Sales,String>{
	private static Logger log=LoggerFactory.getLogger(SalesDao.class);
	/**
	 * 查詢營業員基本資料
	 * @param id
	 * @return
	 */
	public Sales getById(String id){
		log.trace("findById:{}",id);
		return findById(id);
	}
}